package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonIgnore;


/**
 * The persistent class for the employee_account_requirements_tbl database table.
 * 
 */
@Entity
@Table(name="employee_account_requirements_tbl")
public class EmployeeAccountRequirement extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="EMP_ACCT_RQMT_CODE")
	private int empAcctRqmtCode;

	private boolean status;

	//bi-directional many-to-one association to AccountRequirement
	@ManyToOne
	@JoinColumn(name="ACCT_RQMT_CODE")
	private AccountRequirement accountRequirements;

	//bi-directional many-to-one association to Employee
	@ManyToOne
	@JoinColumn(name="EMP_ID_NO")
	private Employee employee;

	public EmployeeAccountRequirement() {
	}

	public int getEmpAcctRqmtCode() {
		return this.empAcctRqmtCode;
	}

	public void setEmpAcctRqmtCode(int empAcctRqmtCode) {
		this.empAcctRqmtCode = empAcctRqmtCode;
	}

	public boolean getStatus() {
		return this.status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public AccountRequirement getAccountRequirements() {
		return this.accountRequirements;
	}

	public void setAccountRequirements(AccountRequirement accountRequirements) {
		this.accountRequirements = accountRequirements;
	}

	@JsonIgnore
	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

}